perf: reduce call of has when not necessary#388
perf: reduce call of has when not necessary#388cesco69 wants to merge 2 commits intoavoidwork:masterfrom
Conversation
🤖 Augment PR SummarySummary: Reduces overhead in hot LRU operations by avoiding 🤖 Was this summary useful? React with 👍 or 👎 |
|
augment review |
|
that's previously been a deopt due to the type assignment and verification. do you have an IR render that shows it's ok? i used to use irhydra, and then deoptigate to verify that path. |
This is possible because the variable
no, sorry |
|
the you're basically swapping the to clarify; i already did that work, so if you want to land the change you would need to do the new work to show it's safe. |
|
i should also clarify, that the you need a good reason to propose a subtle, but significant change, and benchmarks. |
just a micro-optimization.
Reduces overhead in hot LRU operations by avoiding has() checks when a direct cache-entry lookup is sufficient.